package com.ycMc.utils;

//对server sdk返回的封装
public class SdkHttpResult {

    private int code;
    private String result;
    private String userId;
    private String token;

    public SdkHttpResult(){

    }

    public SdkHttpResult(int code, String result,String userId,String token) {
        this.code = code;
        this.result = result;
        this.userId=userId;
        this.token=token;
    }

    public int getHttpCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return String.format("{\"code\":\"%s\",\"result\":%s}", code,
                result);
    }
}